package si.yun.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-07-30 15:19:46 
 */
@Entity
@Table ( name ="sy_login_record" )
public class SyLoginRecord  implements Serializable {

	private static final long serialVersionUID =  6470476402470457012L;

	/**
	 * 自增主键
	 */
	@Id
   	@Column(name = "id" )
	private Long id;

	/**
	 * 外键（用户表id）
	 */
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 用户登录IP地址
	 */
   	@Column(name = "login_ip" )
	private String loginIp;

	/**
	 * 登陆地点
	 */
   	@Column(name = "login_location" )
	private String loginLocation;

	/**
	 * 登陆状态（2登陆成功，3登陆失败）
	 */
   	@Column(name = "login_state" )
	private Long loginState;

	/**
	 * 登陆时间
	 */
   	@Column(name = "login_date" )
	private Date loginDate;

	/**
	 * 类型（2后台，3前台）
	 */
   	@Column(name = "login_type" )
	private Long loginType;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public String getLoginIp() {
    return loginIp;
  }

  public void setLoginIp(String loginIp) {
    this.loginIp = loginIp;
  }


  public String getLoginLocation() {
    return loginLocation;
  }

  public void setLoginLocation(String loginLocation) {
    this.loginLocation = loginLocation;
  }


  public Long getLoginState() {
    return loginState;
  }

  public void setLoginState(Long loginState) {
    this.loginState = loginState;
  }


  public Date getLoginDate() {
    return loginDate;
  }

  public void setLoginDate(Date loginDate) {
    this.loginDate = loginDate;
  }


  public Long getLoginType() {
    return loginType;
  }

  public void setLoginType(Long loginType) {
    this.loginType = loginType;
  }

}
